//
//  statusBottomView.swift
//  我的微博
//
//  Created by 杨庆 on 15/10/25.
//  Copyright © 2015年 双元班. All rights reserved.
//

import UIKit

class statusBottomView: UIView {
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    /// 设置界面
    private func setupUI(){
        backgroundColor = UIColor(white: 0.95, alpha: 1.0)
        //1.添加控件
        addSubview(forwardButton)
        addSubview(commentButton)
        addSubview(likeButton)
        //2.设置布局(设置垂直的平铺)
    ff_HorizontalTile([forwardButton,commentButton,likeButton], insets: UIEdgeInsetsZero)
        
    }
    //MARK:-懒加载控件;
    //提示的小技巧: 应用Extention 的语句的时候,可以在参数中设置几个默认的书写初始值的情况....就可以默认的生成两个初始化的方法;
    private lazy var forwardButton: UIButton = UIButton(title: " 转发", imageName: "timeline_icon_retweet")
    private lazy var commentButton: UIButton = UIButton(title: " 评论", imageName: "timeline_icon_comment")
    private lazy var likeButton: UIButton = UIButton(title: " 赞", imageName: "timeline_icon_unlike")
}
